package com.dimples.dd.system.api.logger;

import com.dimples.dd.common.constant.DDServerConstant;
import com.dimples.dd.system.api.fallback.logger.LoginLogFeignFallbackClient;
import com.dimples.dd.system.api.logger.dto.LoginLogCreateReqDTO;
import com.dimples.dd.web.feign.config.FeignDecoderConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2024/9/3
 */
@FeignClient(name = DDServerConstant.DD_SERVER_SYSTEM, contextId = "LoginLogFeign", fallback = LoginLogFeignFallbackClient.class, configuration = {FeignDecoderConfig.class})
public interface LoginLogFeign {

    @PostMapping("/login-log")
    void createLoginLog(LoginLogCreateReqDTO loginLogCreateReq);

}

